body {
    font-family: Arial, sans-serif;
    background-color: #f1f3f6;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #333;
}

input[type="email"], input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #0059ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #0041cc;
}

.error {
    color: red;
    margin-bottom: 15px;
}
.dashboard-container {
    max-width: 1500px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.dashboard-container h2 {
    margin-bottom: 10px;
}

.logout-btn {
    display: inline-block;
    background-color: #d9534f;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 20px;
}

.logout-btn:hover {
    background-color: #c9302c;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(800px, 1fr));
    gap: 20px;
}

.course-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.success {
    color: green;
    margin-bottom: 15px;
}
.unenroll-btn {
    background-color: #ff5555;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

.unenroll-btn:hover {
    background-color: #cc0000;
}
.login-page-horizontal {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.login-form, .login-image {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-form {
    background-color: #ffffff;
}

.login-image {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    text-align: center;
    font-size: 24px;
}
.button.purple {
    background-color: #8e44ad;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

.button.purple:hover {
    background-color: #9b59b6;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

th {
    background-color: #6a1b9a;
    color: #fff;
}

tr:hover {
    background-color: #f1f1f1;
}
